Difference between revisions of "Template:JournalAuthor"

From VOC Wiki
Jump to: navigation, search
Line 1: Line 1:
<includeonly>[https://www.ubc-voc.com/author/{{#replace:{{{Name}}}| |_}} {{{Name}}}]</includeonly><noinclude>{{JournalAuthor|Name=Birgit Rogalla}}This template should be used within tables on VOC Journal Pages to link the author to their author archive on the main website https://www.ubc-voc.com/author/firstname_lastname.  
+
<includeonly>[https://www.ubc-voc.com/author/{{#replace:{{{Name}}}| |_}}{{#if:{{{Num|}}}|-{{{Num}}}|}} {{{Name}}}]</includeonly><noinclude>{{JournalAuthor|Name=Birgit Rogalla}}
 +
{{JournalAuthor|Name=George Hill|Num=2}}
 +
This template should be used within tables on VOC Journal Pages to link the author to their author archive on the main website https://www.ubc-voc.com/author/firstname_lastname.  
  
 
''$wgPFEnableStringFunctions = true; needs to be set in the LocalSettings.php in order for this template to work. The two functions below are two string functions affected by this setting. When enabled, it should show "striw" and "6".
 
''$wgPFEnableStringFunctions = true; needs to be set in the LocalSettings.php in order for this template to work. The two functions below are two string functions affected by this setting. When enabled, it should show "striw" and "6".
Line 7: Line 9:
 
Empty:
 
Empty:
 
<pre><nowiki>
 
<pre><nowiki>
{{JournalAuthor|Name=}}
+
{{JournalAuthor|Name=|Num=2}}
 
</nowiki></pre>
 
</nowiki></pre>
  
Line 13: Line 15:
 
<pre><nowiki>
 
<pre><nowiki>
 
{{JournalAuthor|Name=Birgit Rogalla}}
 
{{JournalAuthor|Name=Birgit Rogalla}}
 +
{{JournalAuthor|Name=George Hill|Num=2}}
 
</nowiki></pre>
 
</nowiki></pre>
  
  
 
</noinclude>
 
</noinclude>

Revision as of 14:29, 18 April 2019

Birgit Rogalla George Hill This template should be used within tables on VOC Journal Pages to link the author to their author archive on the main website https://www.ubc-voc.com/author/firstname_lastname.

$wgPFEnableStringFunctions = true; needs to be set in the LocalSettings.php in order for this template to work. The two functions below are two string functions affected by this setting. When enabled, it should show "striw" and "6". strinw 6

Empty:

{{JournalAuthor|Name=|Num=2}}

Filled Out:

{{JournalAuthor|Name=Birgit Rogalla}}
{{JournalAuthor|Name=George Hill|Num=2}}