Template talk:MilAward

Ribbons and Descriptions

 * Ribbon :
 * Description:
 * Description:
 * Description:


 * Test Ribbon 1
 * Default:
 * Size
 * Test Ribbon 2
 * Test Ribbon 3
 * Test Ribbon 4
 * Test Ribbon 5
 * Test Description 1
 * Test Description 2
 * Test Description 3
 * Test Ribbon 5
 * Test Description 1
 * Test Description 2
 * Test Description 3
 * Test Description 1
 * Test Description 2
 * Test Description 3
 * Test Description 2
 * Test Description 3
 * Test Description 2
 * Test Description 3
 * Test Description 3
 * Test Description 3


 * test default size

Named Params
Note: The named param does work but is not preferred
 * Test 1:
 * Test 2:
 * Test 3:
 * Test 4:
 * Test 5:
 * Test 6:
 * Test 7:


 * Test 8:

Making this work
So I am pretty much at the stage where I can now make this work. The bulk of the data is converted into the format that makes it available, and the basic routines (Ribbon and RibbonDesc) work pretty well. There are some tweaks to them which I'll tackle, but the basics are there. Now I need to decide what to do going forward. As I see it there are at least two competing options.
 * Keep using and  . Edit them to stop using local data but replace their current functionality with #evoke calls to my new Lua routines
 * or, Write new templates (say for example and  or something like that, then tidy everything up to replace the old templates with the new?

I also need someone to cast an eye at the data both in the table on the talk page as well as maybe directly in  What I'm thinking is that I have made all sorts of decisions on my own and they might not be the best. For example what data we need to store etc. Take as an example the idea of "class". Run your eye down the list and you will see how I have used that field, which makes a lot of sense to me but might not to others. The other issue is "Country" and "Org". Do they make sense? Do we need an additional field maybe like "Type"? Ideas please. BoonDock (talk) 12:13, 6 April 2023 (UTC)


 * Copying this from my user page as it's pertinent to the discussion:
 * I wrote a Lua module called which holds all the data I can find for medals in . This module implements a variety of functions which draw the data from that stored in  to present it in different ways.
 * I have created the following templates to present that data:
 * - This defaults to the mentioned below - display the award ribbon linked to the medal information page
 * To be created:
 * - ✅ display the award ribbon linked to the medal information page
 * - ✅ display the ribbon and alongside it the medal name with a link to the medal's page. Note, you can use the parameter "norip=yes" to only display the description
 * - ✅ A subroutine which can be invoked to list all the data in the database. Currently active on It can be invoked (#invoke) by anyone on any page, and if needed I will create a template for it. If I do create the template, I will remove the stat table.❌ Depends on someone making a use case.
 * - ✅ a replacement for the template drawing from the same database.
 * - ✅ This will allow for a list of medal codes, similar to the current Post-nominals template, which would then display all the ribbons specified in a long horizontal stack, similar to how the works now with individual ribbons.
 * As I go, I will also add extra features:
 * Country=yes - Add the display of country to the medal description. WIll have to figure out if I display just what's in the data or do an ISO lookup for a country name. ✅ This works this way. "country=ZAR" means that if the award does NOT match the country specified (ZAR), then add the display of the country to the award.
 * Class=no - Allow the turning off of the addition of what's in the "Class" field to the medal description
 * TextSize=xx - Allow the specification of the size of the text. Probably a percentage.
 * Org=yes - Allow the turning on of the display of the contents of the "Org" field
 * Notes=no - Allow the turning off of the display of the contents of the "Notes" field
 * norib=yes - Turn off display of the Ribbon ✅
 * Allow the ability to add a "Recipient Category" for each medal ✅
 * Others ???
 * BoonDock (talk) 15:55, 6 April 2023 (UTC)
 * I've had a thought that if this does become too unwieldy with everything shoved into one module/data page, it's possible to write it to split the data modules. I don't want to do that, so I will avoid it as much as possible ;-) BoonDock (talk) 14:40, 7 April 2023 (UTC)

Bogus file options lint errors
Template talk:MilAward (this page) has four Bogus file options lint errors, each of which is, and the errors are caused by by these markup snips:

The rest of the page is all lint-free. It would be good to fix the code so these work as intended, without lint. For those who don't know about lint errors, see WP:Linter. For those who want to work on fixing lint errors, you are encouraged to install lintHint as described on that page. —Anomalocaris (talk) 07:02, 11 April 2023 (UTC)


 * Hi, Thanks for pointing that out. They were done deliberately while I test this template and the Lua module. BoonDock (talk) 17:49, 11 April 2023 (UTC)
 * Just FYI, I think I have fixed the errors now. I was concentrating on searching for the bug in my Lua code. Turns out the solution was to add a default option as part of the template params. Please let me know if you see the bug again. BoonDock (talk) 01:29, 14 April 2023 (UTC)

Stack Test

 * (Large, specify size)
 * (Default size)

BoonDock (talk) 17:56, 13 April 2023 (UTC)