Topic on Project:Support desk

Will an Array solve my problem?

2
65.42.26.190 (talkcontribs)

within several pages, there are around five codes. I need to keep track of those codes, and display them together in one place. The codes could be used on multiple pages. If I was straight coding this, it would seem I would create an array, add the code values to that array from each page during page creation (ignoring duplicates). Then create a page that simply prints to the screen, all stored codes from the array.

being super unfamiliar with wikitext - I have no idea if this will work in theory. before I spend hours trying to figure out how to build and array and populate it - can someone just give me a "yes that will work", or a "no try again". Thanks!

88.130.92.246 (talkcontribs)

What are the "codes" you are speaking about? To me what you want sounds like a job for templates: Create a template with the stuff xou need and include it in the pages where you want it. Should you in fact want a list of pages, you might want to check categories.

Reply to "Will an Array solve my problem?"