Badge time.png   The Paragon Wiki Archive documents the state of City of Heroes/Villains as it existed on December 1, 2012.

Difference between revisions of "Template talk:CharacterList Row"

From Paragon Wiki Archive
Jump to: navigation, search
(+if: example)
m (missed some squigglies)
Line 1: Line 1:
 
I'm not sure how to do it, but is there a way to add optional parameter's for BH or CIT ids that would link to the character's profile?  {{helpme}}.  Thanks.  [[User:Sapph|Sapph]] 11:34, 15 August 2007 (EDT)
 
I'm not sure how to do it, but is there a way to add optional parameter's for BH or CIT ids that would link to the character's profile?  {{helpme}}.  Thanks.  [[User:Sapph|Sapph]] 11:34, 15 August 2007 (EDT)
  
<pre><nowiki>{{#if: {{bh|}} | [http://badge-hunter.com/id?{{bh}} Badge Hunter] }}</nowiki>
+
<pre><nowiki>{{#if: {{{bh|}}} | [http://badge-hunter.com/id?{{{bh}}} Badge Hunter] }}</nowiki>
<nowiki>{{#if: {cit|}} | [http://cityinfoterminal.com/id?{{cit}} Badge Hunter] }}</nowiki></pre>
+
<nowiki>{{#if: {{{cit|}}}} | [http://cityinfoterminal.com/id?{{{cit}}} Badge Hunter] }}</nowiki></pre>
<nowiki>#if:</nowiki> is if exists. If something exists, do this.  
+
'''<nowiki>#if:</nowiki>''' is if exists. If something exists, do this.  
 
If '''bh''' or '''cit''' is included, add a link to badge-hunter. Change URL to match scheme. --[[User:Konoko|Konoko]] 12:55, 15 August 2007 (EDT)
 
If '''bh''' or '''cit''' is included, add a link to badge-hunter. Change URL to match scheme. --[[User:Konoko|Konoko]] 12:55, 15 August 2007 (EDT)

Revision as of 17:01, 15 August 2007

I'm not sure how to do it, but is there a way to add optional parameter's for BH or CIT ids that would link to the character's profile? Template:Helpme. Thanks. Sapph 11:34, 15 August 2007 (EDT)

{{#if: {{{bh|}}} | [http://badge-hunter.com/id?{{{bh}}} Badge Hunter] }}
{{#if: {{{cit|}}}} | [http://cityinfoterminal.com/id?{{{cit}}} Badge Hunter] }}

#if: is if exists. If something exists, do this. If bh or cit is included, add a link to badge-hunter. Change URL to match scheme. --Konoko 12:55, 15 August 2007 (EDT)