Template talk:Simbio3: Difference between revisions

m
13 revisions imported: Import from https://sims.wikia.com
sims>Duskey
(Created page with '==Adding trait links== I noticed them linking do disambig. pages too. We'll have to do some <code>if friendly then link to Friendly (trait)</code> stuff. Would that be okay for b…')
 
m (13 revisions imported: Import from https://sims.wikia.com)
 
(12 intermediate revisions by 3 users not shown)
Line 1:
{{Talkheader}}
==Adding trait links==
I noticed them linking do disambig. pages too. We'll have to do some <code>if friendly then link to Friendly (trait)</code> stuff. Would that be okay for bring back links to traits? '''[[User:Duskey|Duskey]]'''<small>([[User_talk:Duskey|<span style="color:green;">talk</span>]])</small> 03:34, August 17, 2010 (UTC)
:Yea, we can do that. Any time we add links we should also check if it's in the main namespace to avoid red links from player stories. --[[User:A_morris|a_morris]] <small>([[User_talk:A_morris|talk]])</small> 22:35, August 22, 2010 (UTC)
::So it's {{t|Simbio}} we should edit and replace eg. <code><nowiki>{{{trait5}}}</nowiki></code> with
<pre>{{Checkmns|
[[{{#switch:{{{trait5}}}
|Friendly = Friendly (trait){{!}}Friendly
|Loner = Loner (trait){{!}}Loner
|Athletic = Athletic (trait){{!}}Athletic
}}]]
|{{{trait5}}}
}}</pre>
? '''[[User:Duskey|Duskey]]'''<small>([[User_talk:Duskey|<span style="color:green;">talk</span>]])</small> 05:21, August 23, 2010 (UTC)
:::Yes, and {{t|Sim}} as well. I would put it in a separate template so you don't have to keep copying it. We can also do something similar for aspirations. --[[User:A_morris|a_morris]] <small>([[User_talk:A_morris|talk]])</small> 05:54, August 23, 2010 (UTC)
::::Do you think we should make a '''<tt>GetLink</tt>''' template, we can put just about any disambiguation link in there. '''[[User:Duskey|Duskey]]'''<small>([[User_talk:Duskey|<span style="color:green;">talk</span>]])</small> 06:14, August 23, 2010 (UTC)
::::How would you determine which page to link? --[[User:A_morris|a_morris]] <small>([[User_talk:A_morris|talk]])</small> 22:18, August 31, 2010 (UTC)
:::::Like this: Simbio3 here gets a <code><nowiki>[[{{GetLink|{{{trait1}}}}}]]</nowiki></code>
 
:::::GetLink will look like this:
<pre>{{Checkmns|
{{#switch:{{{1}}}
|Friendly = Friendly (trait){{!}}Friendly
|Loner = Loner (trait){{!}}Loner
|Athletic = Athletic (trait){{!}}Athletic
|{{{1}}}
}}
}}</pre>
:::::I think that'd work. '''[[User:Duskey|Duskey]]'''<small>([[User_talk:Duskey|<span style="color:green;">talk</span>]])</small> 22:59, August 31, 2010 (UTC)
How would you know to link to [[Friendly (trait)]] or [[Friendly (aspiration)]], for example? --[[User:A_morris|a_morris]] <small>([[User_talk:A_morris|talk]])</small> 19:53, September 4, 2010 (UTC)
 
:To differentiate between the two without having the user enter the difference I we'd need a <code>GetTrait</code> and a <code>GetAspiration</code> template. Wouldn't this solve the problem? '''[[User:Duskey|Duskey]]'''<small>([[User_talk:Duskey|<span style="color:green;">talk</span>]])</small> 23:26, September 4, 2010 (UTC)
::Sounds good. --[[User:A_morris|a_morris]] <small>([[User_talk:A_morris|talk]])</small> 04:00, October 7, 2010 (UTC)
:::I've added a disambiguation switch for aspirations in {{t|Sim}} and {{t|Simbio}}. --[[User:A_morris|a_morris]] <small>([[User_talk:A_morris|talk]])</small> 04:14, November 28, 2010 (UTC)
::::{{t|GetLink}} --[[User:A_morris|a_morris]] <small>([[User_talk:A_morris|talk]])</small> 03:33, November 30, 2010 (UTC)