Bureaucrats, content-moderator, emailconfirmed, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Administrators, threadmoderator
85,404
edits
Line 99: | Line 99: | ||
Now, if you look at my /Time Format, you'll notice that it's a <span> without actually having the <span> and </span> tags around. That's because the span tags are actually in Special:Preferences, not in the template page. | Now, if you look at my /Time Format, you'll notice that it's a <span> without actually having the <span> and </span> tags around. That's because the span tags are actually in Special:Preferences, not in the template page. | ||
So in Preferences, I'll type something like<pre><span style"{{SUBST:{{User:CzechOut/Time}}">{{SUBST:#time:<whatever i want for time>}} }}</span></pre> Now, because I'm substituting /Time, and the contents of /Time ia < | So in Preferences, I'll type something like<pre><span style"{{SUBST:{{User:CzechOut/Time}}">{{SUBST:#time:<whatever i want for time>}} }}</span></pre> Now, because I'm substituting /Time, and the contents of /Time ia <nowiki>{{TimeFormat}}</nowiki>, that means the result of substituting /Time is merely to add <nowiki>{{TimeFormat}}</nowiki> to the page. This means that I can have all the formatting I want and the only thing that will apear on the page is <nowiki>{{TimeFormat}}</nowiki>. Which is handy, cause people get pissed off if you have a huge, multi-line signature. | ||
So, to sum up. Create two subpages from your user page. In file ''a'', place your formatting. In file ''b'', place a template call to file ''a'' ({{user:Wildheart7/File a}}). Then, in your preferences, type<pre><span style="{{SUBST:{{user:Wildheart7/File B}}}}">{{#time:<whatever>}}</span></pre> | So, to sum up. Create two subpages from your user page. In file ''a'', place your formatting. In file ''b'', place a template call to file ''a'' ({{user:Wildheart7/File a}}). Then, in your preferences, type<pre><span style="{{SUBST:{{user:Wildheart7/File B}}}}">{{#time:<whatever>}}</span></pre> | ||
Don't forget that [[help:signatures]] tells you more about how actualy format time — that is, it tells you what that <whatever> should be. Hope that helps! {{user:CzechOut/Sig}} <span style="{{User:CzechOut/TimeFormat}}">05:58: Sat 24 Sep 2011 </span> | Don't forget that [[help:signatures]] tells you more about how actualy format time — that is, it tells you what that <whatever> should be. Hope that helps! {{user:CzechOut/Sig}} <span style="{{User:CzechOut/TimeFormat}}">05:58: Sat 24 Sep 2011 </span> |
edits