We've moved, ! Update your bookmarks to https://thesouthpacific.org! These forums are being archived.

Dismiss this notice
See LegComm's announcement to make sure you're still a legislator on the new forums!

[OOC] WikiProject: IUFA FWC
#1

As some of you know, I've been working on the pages for some historical IUFA FWCs recently. I figured I'd make this post just to explain how I've been organizing things on the wiki.

Obviously, the wiki is inherently a community project. I'm not saying this is necessarily the best way to do things (Wikipedia actually isn't consistent with itself, which makes things harder). Rather, I'm posting this so that if anyone else wants to work on those pages too, this can serve as a guide to what the heck I was thinking when I added a mess of templates and transclusions.

Like Wikipedia, for each FWC/World Cup there are several different articles. The main article for each FWC is titled (YEAR) IUFA Football World Championship (Pacifica) (TSPedia example | Wikipedia example).

Group Stages
In this article, the final results tables for each group is inserted from a template titled Template:(YEAR) IUFA Football World Championship Group A table (TSPedia example | Wikipedia example). The code to insert the table into the article is as follows:
 
Code:
{{1956 IUFA Football World Championship Group A table|Group A|only_pld_pts=no_hide_class_rules}}
The reason this is inserted as a template is because this table also appears in the article for each group. It would be redundant to hard-code it in two places; plus, it makes fixing any typos exactly twice as hard.

The match reports for each group are writen using the {{football box}} template (TSPedia example | Wikipedia example). These match reports are written on the article for each group, not on the main article for the FWC. Instead, they are transcluded onto the main article.

The articles for each group are titled (YEAR) IUFA Football World Championship Group (X) (Pacifica) (TSPedia example | Wikipedia example). To make the football box transcludable, it should be wrapped in <onlyinclude> tags and an invocation of the transcludable section module. For example:
 
Code:
<onlyinclude>{{#invoke:transcludable section|main|section=B-1|text={{football box
|date = 1956
|time =
|team1 = {{fbp-rt|Esfalsa}}
|score = {{score link|1956 IUFA Football World Championship Group B (Pacifica)#Esfalsa vs Winston Island|3-1}}
|report =
|team2 = {{fbp|Winston Island}}
|goals1 =
|goals2 =
|stadium = Sedunn
|attendance =
|referee = }}}}</onlyinclude>

This ensures that this section, and just this section, can be transcluded onto another page when needed. (For example, any line-ups added below this section will show up only on the group page and won't be transcluded to the main article.) Then, on the main article for the FWC, these football boxes can be transcluded:
 
Code:
{{:1956 IUFA Football World Championship Group B (Pacifica)|transcludesection=B-1}}
{{:1956 IUFA Football World Championship Group B (Pacifica)|transcludesection=B-2}}
{{:1956 IUFA Football World Championship Group B (Pacifica)|transcludesection=B-3}}
{{:1956 IUFA Football World Championship Group B (Pacifica)|transcludesection=B-4}}
{{:1956 IUFA Football World Championship Group B (Pacifica)|transcludesection=B-5}}
{{:1956 IUFA Football World Championship Group B (Pacifica)|transcludesection=B-6}}

Note the section names. Currently they are named as (GROUP)-(GAME NUMBER), where the game number is just counted sequentially for each group — I went by the order listed in the IUFA FWC history spreadsheet. This isn't the most intuitive, but I think its how Wikipedia does it, and's also much more convenient for anyone (like myself :P) with a text editor that supports adding multiple cursors at once. I can just copy paste that chunk of code, add a cursor at each place the group letter shows up, and change them all at once.

Also, note that the section is named in the article for the group, as one of the parameters passed to #invoke:transcludable section. That section name is specified in the main article, when you are transcluding a section, to specify which section you want to transclude.

Knockout Stages
I'll get to this later, because I'm not quite done :P
I did figure out the template for the knockout bracket, but it isn't rendering quite properly (I'm not sure TSPedia supports <templatestyles> because that part renders fine on Wikipedia but not on TSPedia?). So I'll leave this section as a WIP for now.


I know that was a lot — I apologize for that. If anyone has suggestions on how to do this better, please feel free to share them. I'm only halfway done with the first FWC so it's not too difficult to change things.
[Image: flag%20of%20esfalsa%20animated.svg] Esfalsa | NationStatesWiki | Roleplay | Discord

[Image: rank_officer.min.svg] [Image: updates_lifetime_2.min.svg] [Image: defenses_lifetime_4.min.svg] [Image: detags_lifetime_3.min.svg]
[-] The following 2 users Like Pronoun's post:
  • GI-Land, Qwert
Reply
#2

Okay, so I've been a bit busy IRL recently. I haven't had the chance to test this out on the wiki, but based on a discussion from Discord a few days ago (on how this system seems a bit complicated, which I agree with), I'm curious if this system might work better?
  • Group tables and match reports are written directly on the page for each FWC
  • These are wrapped in the tags so that they are transcludable sections that can be imported into other articles
  • Articles for each group, on second thought, do seem like a lot of work for not a lot of info... if anyone gets together to figure out historical kits, lineups, formations, etc. those can go on the group pages avoid cluttering the main FWC article, and import the transcludable sections as needed from the main article... otherwise, we can probably skip these articles
This is pretty different from what Wikipedia is, but it's (obviously) a lot simpler and hopefully sufficient for our purposes. I think it also has the advantage that someone who doesn't want to learn all the complicated wiki stuff but just wants to write down the results of some games can contribute, and other editors can add some tags/templates/etc. to turn those into transcludable sections later.

Possible downsides might be that it's harder to copy-paste templates from Wikipedia because we'd be using a different system than them; or if any WikiText issues pop up it might be a little harder to debug since there's no Wikipedia template for reference.

When I get some more free time I'll try out testing to see if this all works Tounge
[Image: flag%20of%20esfalsa%20animated.svg] Esfalsa | NationStatesWiki | Roleplay | Discord

[Image: rank_officer.min.svg] [Image: updates_lifetime_2.min.svg] [Image: defenses_lifetime_4.min.svg] [Image: detags_lifetime_3.min.svg]
[-] The following 1 user Likes Pronoun's post:
  • GI-Land
Reply




Users browsing this thread:
1 Guest(s)





Theme © iAndrew 2018 Forum software by © MyBB .