Difference between revisions of "Template:ContactInfobox"
Jump to navigation
Jump to search
Tag: visualeditor-wikitext |
Tag: visualeditor-wikitext |
||
Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
|title = {{PAGENAME}} | |title = {{PAGENAME}} | ||
|image= {{{Image|[[File:Placeholder2.jpg|200px]] | |image= {{if#: {{{Image}}}| {{{Image}}} | [[File:Placeholder2.jpg|200px]] }} | ||
|header1= [[Profession::{{{Profession | |header1= {{if#: {{{Profession}}}| [[Profession::{{{Profession}}}]] | [[Profession::Undefined]] }} | ||
|header2= {{{Shortblurb1|}}} | |header2= {{{Shortblurb1|}}} | ||
|header3= {{{Shortblurb2|}}} | |header3= {{{Shortblurb2|}}} | ||
Line 9: | Line 9: | ||
|data5 = {{#if: {{{OwnersRedditName|}}}| [https://www.reddit.com/user/{{{OwnersRedditName}}} {{{OwnersRedditName}}}] }} | |data5 = {{#if: {{{OwnersRedditName|}}}| [https://www.reddit.com/user/{{{OwnersRedditName}}} {{{OwnersRedditName}}}] }} | ||
|label6 = Connection | |label6 = Connection | ||
|data6 = [[Connection::{{{Connection}}}]] | |data6 = {{if#: {{{Connection}}}| [[Connection::{{{Connection}}}]] | [[Connection::Undefined]] }} | ||
|label8 = Public Contact? | |label8 = Public Contact? | ||
|data8= {{#ifeq: 1 | {{#ask: [[Category:Public Contacts]] [[{{PAGENAME}}]]|format=count}} | Yes | }} | |data8= {{#ifeq: 1 | {{#ask: [[Category:Public Contacts]] [[{{PAGENAME}}]]|format=count}} | Yes | }} | ||
|label9 = [[Contact_Rules#Contact_Archetype|Archetype]] | |label9 = [[Contact_Rules#Contact_Archetype|Archetype]] | ||
|data9 = [[Archetype::{{{Archetype | |data9 = {{if#: {{{Archetype}}}| [[Archetype::{{{Archetype}}}]] | [[Archetype::Undefined]] }} | ||
|label10 = Location | |label10 = Location | ||
|data10= {{#if: {{{Location}}}|[[Location::{{{Location}}}]] }} | |data10= {{#if: {{{Location}}}|[[Location::{{{Location}}}]] }} | ||
Line 65: | Line 65: | ||
This allows us to turn previous globs of wiki code to generate a proper contact infobox into a simple short list that explains what the frag you're doing directly and plainly. Many boxes function quite happily when left blank; however, Profession and Archetype are required. It is highly recommended to make use of [[Template:Age]] for the age entry, but anything can be put in its place such as a vague "middle aged" or similar. | This allows us to turn previous globs of wiki code to generate a proper contact infobox into a simple short list that explains what the frag you're doing directly and plainly. Many boxes function quite happily when left blank; however, Profession, Connection, and Archetype are required. It is highly recommended to make use of [[Template:Age]] for the age entry, but anything can be put in its place such as a vague "middle aged" or similar. | ||
For example, if you enter the following: | For example, if you enter the following: |
Revision as of 18:56, 6 April 2020
Template:If | |
Template:If | |
---|---|
Connection | Template:If |
Archetype | Template:If |
Location | {{{Location}}} |
Metatype | {{{Metatype}}} |
Gender | {{{Gender}}} |
Faction | {{{Faction}}} |
UsageThis template is designed to simplify the creation of new contact pages and automatically tag things with SemanticWiki markup where appropriate. {{ContactInfobox| |Image= |Profession= |Shortblurb1= |Shortblurb2= |Shortblurb3= |OwnersRedditName= |Connection= |Archetype= |Location= |Metatype= |Gender= |Age= |PreferredPayment= |HobbiesOrVice= |PersonalLife= |Faction= }}
For example, if you enter the following: {{ContactInfobox| |Image=[[File:News Van Dan.jpg|200px]] |Profession=Guerilla Reporter (Infobroker) |Shortblurb1=The Man with a Plan |Shortblurb2= |Shortblurb3= |OwnersRedditName=Teksura |Connection=3 |Archetype=Legwork |Location=Tacoma, Seattle |Metatype=Human |Gender=Male |Age={{Age| |Month=12 |Day=11 |Year=2053 |}} |PreferredPayment=Information |HobbiesOrVice=THE TRUTH |PersonalLife=Single? |Faction=ShadeTruth Media }} Your result will be:
|