Difference between revisions of "Template:ContactInfobox"

From ShadowHaven Reloaded
Jump to navigation Jump to search
Tag: visualeditor-wikitext
 
(33 intermediate revisions by 4 users not shown)
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|Undefined}}}]]  
|header1= [[Profession::{{{Profession}}}]]  
|header2= {{{Shortblurb1|}}}
|header2= {{{Shortblurb1|}}}
|header3= {{{Shortblurb2|}}}
|header3= {{{Shortblurb2|}}}
|header4= {{{Shortblurb3|}}}
|header4= {{{Shortblurb3|}}}
|label5 = Contact Owner  
|label5 = Contact Owner  
|data5 = {{#if: {{{OwnersRedditName|}}}| [https://www.reddit.com/user/{{{OwnersRedditName}}} {{{OwnersRedditName}}}] }}  
|data5 = {{#if: {{{OwnersRedditName|}}}| [https://www.reddit.com/user/{{{OwnersRedditName}}} [[Created by::{{{OwnersRedditName}}}]]] }}  
|label6 = Connection
|label6 = Owner's Discord Name
|data6 = [[Connection::{{{Connection}}}]]  
|data6 = [[Created by::{{{OwnersDiscordName|}}}]]
|label7 = Connection
|data7 = [[Connection::{{{Connection}}}]]  
|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|Undefined}}}]]  
|data9 =  [[Archetype::{{{Archetype}}}]]  
|label10 = Location  
|label10 = Location  
|data10= {{#if: {{{Location}}}|[[Location::{{{Location}}}]] }}
|data10= {{#if: {{{Location|}}}|[[Location::{{{Location}}}]] }}
|label11 = Metatype  
|label11 = Metatype  
|data11 = {{#if: {{{Metatype}}}|[[Metatype::{{{Metatype}}}]] }}  
|data11 = {{#if: {{{Metatype|}}}|[[Metatype::{{{Metatype}}}]] }}  
|label12 = Gender  
|label13 = Gender  
|data12 = {{#if: {{{Gender}}}|[[Gender::{{{Gender}}}]] }}  
|data13 = {{#if: {{{Gender|}}}|[[Gender::{{{Gender}}}]] }}  
|label13 = Age  
|label12 = Awakened/Emerged
|data13= {{{Age|}}}  
|data12 = {{{AwakenedEmergedOrMundane|}}}
|label14= Preferred Payment Method
|label14 = Age  
|data14 = {{{PreferredPayment|}}}
|data14= {{{Age|}}}  
|label15 =  Hobbies/Vice  
|label15= Preferred Payment Method
|data15 = {{{HobbiesOrVice|}}}
|data15 = {{{PreferredPayment|}}}
|label16 = Personal Life  
|label16 =  Hobbies/Vice  
|data16 = {{{PersonalLife|}}}
|data16 = {{{HobbiesOrVice|}}}
|label17 = Faction
|label17 = Personal Life  
|data17 = {{#if: {{{Faction}}}|[[Faction::{{{Faction}}}]] }}  
|data17 = {{{PersonalLife|}}}
|label18 = Faction
|data18 = {{#if: {{{Faction|}}}|[[Faction::{{{Faction}}}]] }} {{#if: {{{Faction2|}}}|<BR> [[Faction::{{{Faction2}}}]] }}  
|label19 = Aspects  
|label19 = Aspects  
|data19 = {{GenerateAspectList}}  
|data19 = {{GenerateAspectList}}  
Line 36: Line 40:


<noinclude>
<noinclude>
{| cellpadding=5 cellspacing=0 style="border: black 2px solid; width: 100%;  -moz-border-radius: 20px; -webkit-border-radius: 25px; border-radius: 25px; background-color: #DDD"
{| cellpadding=5 cellspacing=0 style="border: gray 2px solid; width: 100%;  -moz-border-radius: 20px; -webkit-border-radius: 25px; border-radius: 25px; background-color: #444"
|-  
|-  
|
|
Line 51: Line 55:
|Shortblurb3=
|Shortblurb3=
|OwnersRedditName=
|OwnersRedditName=
|OwnersDiscordName=
|Connection=
|Connection=
|Archetype=
|Archetype=
|Location=
|Location=
|Metatype=
|Metatype=
|AwakenedEmergedOrMundane=
|Gender=
|Gender=
|Age=
|Age=
Line 61: Line 67:
|PersonalLife=
|PersonalLife=
|Faction=
|Faction=
|Faction2=
}}
}}
</pre>
</pre>
Line 66: Line 73:


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 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.
The template supports up to 2 factions, please fill <code>|Faction=</code> before <code>|Faction2=</code>.


For example, if you enter the following:
For example, if you enter the following:
Line 77: Line 86:
|Shortblurb3=
|Shortblurb3=
|OwnersRedditName=Teksura
|OwnersRedditName=Teksura
|OwnersDiscordName=Teksura
|Connection=3
|Connection=3
|Archetype=Legwork
|Archetype=Legwork
|Location=Tacoma, Seattle
|Location=Tacoma, Seattle
|Metatype=Human
|Metatype=Human
|AwakenedEmergedOrMundane=Mundane
|Gender=Male
|Gender=Male
|Age={{Age|
|Age={{Age|
Line 103: Line 114:
|Shortblurb3=
|Shortblurb3=
|OwnersRedditName=Teksura
|OwnersRedditName=Teksura
|OwnersDiscordName=Teksura
|Connection=3
|Connection=3
|Archetype=Legwork
|Archetype=Legwork
|Location=Tacoma, Seattle
|Location=Tacoma, Seattle
|Metatype=Human
|Metatype=Human
|AwakenedEmergedOrMundane=Mundane
|Gender=Male
|Gender=Male
|Age={{Age|
|Age={{Age|

Latest revision as of 23:39, 30 October 2024

ContactInfobox
Placeholder2.jpg
{{{Profession}}}
Owner's Discord Name
Connection{{{Connection}}}
Archetype{{{Archetype}}}


Usage

This 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=
|OwnersDiscordName=
|Connection=
|Archetype=
|Location=
|Metatype=
|AwakenedEmergedOrMundane=
|Gender=
|Age=
|PreferredPayment=
|HobbiesOrVice=
|PersonalLife=
|Faction=
|Faction2=
}}


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.

The template supports up to 2 factions, please fill |Faction= before |Faction2=.

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
|OwnersDiscordName=Teksura
|Connection=3
|Archetype=Legwork
|Location=Tacoma, Seattle
|Metatype=Human
|AwakenedEmergedOrMundane=Mundane
|Gender=Male
|Age={{Age|
|Month=12
|Day=11
|Year=2053
|}}
|PreferredPayment=Information
|HobbiesOrVice=THE TRUTH
|PersonalLife=Single?
|Faction=ShadeTruth Media
}}

Your result will be:

ContactInfobox
News Van Dan.jpg
Guerilla Reporter (Infobroker)
The Man with a Plan
Contact OwnerTeksura
Owner's Discord NameTeksura
Connection3
ArchetypeLegwork
LocationTacoma, Seattle
MetatypeHuman
Awakened/EmergedMundane
GenderMale
Age31
Preferred Payment MethodInformation
Hobbies/ViceTHE TRUTH
Personal LifeSingle?
FactionShadeTruth Media