Fandom

Community Central

Admin Forum:Optional Template Rows

19,021pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

This Forum has been archived

Forums: Admin Central Index Technical Help Optional Template Rows
Wikia's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.


Hello I'm Awesume I created a wiki called ATPedia a wiki all about tennis pros. I made an infobox template for them but it did not have retired or dead. I want to make the same template for all of the players. How would I make an optional row for retired and died? If you are confused just ask questions. Awesume 17:48, December 21, 2011 (UTC)

If you're using infobox templates based off the built-in Template:Infobox, you would probably want to have wikicode like this in your template:
|Row 5 title  = {{#if:{{{Date Retired|}}}|Retired}}
|Row 5 info   = {{#if:{{{Date Retired|}}}|{{{Date Retired|}}}}}
|Row 6 title  = {{#if:{{{Date of Death|}}}|Dead}}
|Row 6 info   = {{#if:{{{Date of Death|}}}|{{{Date of Death|}}}}}
So the row for Retired should only appear if |Date Retired=some date is passed or the row for Dead should only appear if |Date of Death=some date is passed when using the player infobox template.
-- Fandyllic (talk · contr) 21 Dec 2011 3:06 PM Pacific
Thanks Awesume 19:56, December 29, 2011 (UTC)

Also on Fandom

Random Wiki